g_return_if_fail (context != NULL);
}
-static void
-gdk_broadway_drag_drag_abort (GdkDrag *context,
- guint32 time)
-{
- g_return_if_fail (context != NULL);
-}
-
void
_gdk_broadway_surface_register_dnd (GdkSurface *surface)
{
object_class->finalize = gdk_broadway_drag_finalize;
- context_class->drag_abort = gdk_broadway_drag_drag_abort;
context_class->drag_drop = gdk_broadway_drag_drag_drop;
}
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
}
-/*
- * gdk_drag_abort:
- * @drag: a #GdkDrag
- * @time_: the timestamp for this operation
- *
- * Aborts a drag without dropping.
- *
- * This function is called by the drag source.
- */
-void
-gdk_drag_abort (GdkDrag *drag,
- guint32 time_)
-{
- g_return_if_fail (GDK_IS_DRAG (drag));
-
- GDK_DRAG_GET_CLASS (drag)->drag_abort (drag, time_);
-}
-
/*
* gdk_drag_drop:
* @drag: a #GdkDrag
struct _GdkDragClass {
GObjectClass parent_class;
- void (*drag_abort) (GdkDrag *drag,
- guint32 time_);
void (*drag_drop) (GdkDrag *drag,
guint32 time_);
GdkSurface* (*get_drag_surface) (GdkDrag *drag);
GdkCursor * gdk_drag_get_cursor (GdkDrag *drag,
GdkDragAction action);
-void gdk_drag_abort (GdkDrag *drag,
- guint32 time_);
void gdk_drag_drop (GdkDrag *drag,
guint32 time_);
return dnd_actions;
}
-static void
-gdk_wayland_drag_drag_abort (GdkDrag *drag,
- guint32 time)
-{
-}
-
static void
gdk_wayland_drag_drag_drop (GdkDrag *drag,
guint32 time)
object_class->finalize = gdk_wayland_drag_finalize;
- drag_class->drag_abort = gdk_wayland_drag_drag_abort;
drag_class->drag_drop = gdk_wayland_drag_drag_drop;
drag_class->get_drag_surface = gdk_wayland_drag_get_drag_surface;
drag_class->set_hotspot = gdk_wayland_drag_set_hotspot;
}
}
-static void
-gdk_win32_drag_abort (GdkDrag *drag,
- guint32 time_)
-{
- GdkWin32Drag *drag_win32 = GDK_WIN32_DRAG (drag);
- GdkWin32Clipdrop *clipdrop = _gdk_win32_clipdrop_get ();
-
- g_assert (_win32_main_thread == NULL ||
- _win32_main_thread == g_thread_self ());
-
- g_return_if_fail (drag != NULL);
-
- GDK_NOTE (DND, g_print ("gdk_win32_drag_abort\n"));
-
- if (drag_win32->protocol == GDK_DRAG_PROTO_OLE2)
- {
- gpointer ddd = g_hash_table_lookup (clipdrop->active_source_drags, drag);
-
- drag_win32->util_data.state = GDK_WIN32_DND_NONE;
-
- if (ddd)
- send_source_state_update (clipdrop, drag_win32, ddd);
- }
-}
-
static void
gdk_win32_drag_set_cursor (GdkDrag *drag,
GdkCursor *cursor)
object_class->finalize = gdk_win32_drag_finalize;
- drag_class->drag_abort = gdk_win32_drag_abort;
drag_class->drag_drop = gdk_win32_drag_drop;
drag_class->get_drag_surface = gdk_win32_drag_get_drag_surface;
GdkDragAction suggested_action,
GdkDragAction possible_actions,
guint32 time);
-static void gdk_x11_drag_drag_abort (GdkDrag *drag,
- guint32 time_);
static void gdk_x11_drag_drag_drop (GdkDrag *drag,
guint32 time_);
static GdkSurface * gdk_x11_drag_get_drag_surface (GdkDrag *drag);
object_class->finalize = gdk_x11_drag_finalize;
- drag_class->drag_abort = gdk_x11_drag_drag_abort;
drag_class->drag_drop = gdk_x11_drag_drag_drop;
drag_class->get_drag_surface = gdk_x11_drag_get_drag_surface;
drag_class->set_hotspot = gdk_x11_drag_set_hotspot;
return FALSE;
}
-static void
-gdk_x11_drag_drag_abort (GdkDrag *drag,
- guint32 time)
-{
- gdk_drag_do_leave (GDK_X11_DRAG (drag), time);
-}
-
static void
gdk_x11_drag_drag_drop (GdkDrag *drag,
guint32 time)